package org.xqp.hrm.feign.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.xqp.hrm.doc.CourseDoc;
import org.xqp.hrm.util.AjaxResult;

//全文搜索的API
@FeignClient(value = "hrm-service-search" ,fallbackFactory = CourseESFeignClientFallbackFactory.class )
@RequestMapping("/course")
public interface CourseESFeignClient {

    @RequestMapping("/save")
    AjaxResult save(@RequestBody CourseDoc doc);
}
